package com.vastcom.sigma.admin.dao;


import com.vastcom.sigma.admin.model.Matincoming;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MatincomingDao extends JpaRepository<Matincoming,String> {

    @Query("select c from Matincoming c where c.pm=:pm order by c.rkrq desc ")
    List<Matincoming> getMatincomingsByPm(@Param("pm") String pm);

}
